﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Data;

namespace BEGDC.PreContract.BLL
{
    public partial interface IPreContractInfo
    {
        DataTable GetContractTransferInfo(string filter);

        DataTable GetContractDelivery(string filter);

        //BEGDC.PreContract.DAL.PreContractInfo GetPreContractByNo(string preContractNo);

        System.Data.DataTable GetPreContractInfo(string filter);

        void UploadPreContractDelivery(System.Data.DataTable dtUpload, out System.Data.DataTable dtMissing, out System.Data.DataTable dtUpdated, out string strMessage);

        void UploadContractTransfer(System.Data.DataTable dtUpload, out System.Data.DataTable dtMissing, out System.Data.DataTable dtUpdated, out DataTable dtPartlyToFormalMultiBD, out DataTable dtDiffBD, out string strMessage);

        void UploadOrionInfo(System.Data.DataTable dtUpload, out System.Data.DataTable dtMissing, out System.Data.DataTable dtUpdated, out System.Data.DataTable dtNotExisted, out string strMessage);

        void ImportPreContract(System.Data.DataTable dtUpload, out System.Data.DataTable dtNew, out System.Data.DataTable dtDiff, out System.Data.DataTable dtUpdated, out string strMessage);

        void UpdatePreContract_Import(ref string preContractId, System.Data.DataRow drUpdate, out string strMessage);

        void UploadPreContractCFI(DataTable dtUpload, out DataTable dtMissing, out DataTable dtUpdated, out string strMessage);

        BEGDC.PreContract.DAL.PreContractInfo GetPreContractByNo(string preContractNo, string bdcode);

        BEGDC.PreContract.DAL.PreContractInfo GetPreContractByNo(string preContractNo, BEGDC.PreContract.DAL.BD bd);

        BEGDC.PreContract.DAL.PreContractInfo[] GetPreContractByNo(string preContractNo);

        void UploadPreContractCommentsInfo(int employeeId, System.Data.DataTable dtUpload, out System.Data.DataTable dtMissing, out System.Data.DataTable dtUpdated, out string strMessage);

        //Added by Edwin.fan 2008-9-28
        //Change assignment
        void ChangeAssignment(string type, string oldId, string newId);

        //Joan 2008-10-20
        void UpdatePreContractRiskStat(BEGDC.PreContract.DAL.PreContractInfo precontract);

        bool IsUnique(bool isNew, string preContractNo, int bdid);

        ////yuliang 2010-5-17
        DataTable GetByContractNoAndBDID(string contractNo, int bdID);

        DataTable QuickSearchPreContract(string dpProvinces, string dpCAT, string dpFeedbackStatus, string dpExistMonth, int employeeId, bool isAdmin);

        DataTable GetTransferredPreContract(string preContractNo, string contractStatus, string startDate, string endDate);

        DataTable GetPreContractList(string report, string filter, string employeeID);
    }
}



